#include "Tool_PID.h"
#include "Tool_SetPara.h"
#include "Task_Move.h"
#include "Tool_COMDebug.h"
#include "Module_Motion.h"
#include "Module_YawControl.h"
#include "Task_ActionInOrder.h"

/**
  * @brief  打印COMDebug可调用的函数名列表
  * @param  void
  * @retval void
  */
	
extern int32_t Position_Test;
	
void tips(void)
{
	unsigned char i;
	for(i=0;i<dev.fnum-1;i++)
	{
		u1_printf("%s\r\n",dev.tab[i].tips);
	}
}

void test(int32_t add)
{
	 Position_Test += add;
	u1_printf("%f\r\n",Position_Test);
}

//void test_Auto_0Or1(float status)
//{
//	
////	if(status==0.0)
////	 StrategyStatus=NORMAL;
////	else if(status==1.0)
////		StrategyStatus=AUTO;
////u1_printf("%d\r\n",(u8)status);
//	TakeCubeBlock_Extend();
//}
	
//给C语言编译的函数调用的接口
struct _m_nametab nametab[]=
{	
//{(void *)UpliftFrame,"UpliftFrame","UpliftFrame(int32_t Position,int16_t Speed,int16_t Timeout)"},
//{(void*)test,"test","test(int32_t add)"},	
//{(void*)test_Auto_0Or1,"test_Auto_0Or1","test_Auto_0Or1(u8 status)"},	
{(void*)tips,"tips",""}
};

struct _m_dev dev=
{
	nametab,
	sizeof(nametab)/sizeof(struct _m_nametab),//函数数量
	0,	  	//参数数量
	0,	 	//函数ID
};

